package com.ruoyi.supply.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 供货对象 supply
 * 
 * @author yyg
 * @date 2023-11-27
 */
public class Supply extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 产品id */
    private Long goodsId;

    /** 供货商名字 */
    @Excel(name = "供货商名字")
    private String productName;

    /** 产品名字 */
    @Excel(name = "产品名字")
    private String goodsName;

    /** 产品价格 */
    @Excel(name = "产品价格")
    private BigDecimal goodsPrice;

    /** 产品类型 */
    @Excel(name = "产品类型")
    private String goodsType;

    /** 保质期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "保质期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date goodsShelflife;

    /** 产品数量 */
    @Excel(name = "产品数量")
    private Long goodsNumber;

    /** 产品图片 */
    @Excel(name = "产品图片")
    private String goodsImg;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private Long sStatus;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /**  */
    @Excel(name = "")
    private Long isdelete;

    /** 版本号 */
    @Excel(name = "版本号")
    private Long version;

    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setGoodsName(String goodsName) 
    {
        this.goodsName = goodsName;
    }

    public String getGoodsName() 
    {
        return goodsName;
    }
    public void setGoodsPrice(BigDecimal goodsPrice) 
    {
        this.goodsPrice = goodsPrice;
    }

    public BigDecimal getGoodsPrice() 
    {
        return goodsPrice;
    }
    public void setGoodsType(String goodsType) 
    {
        this.goodsType = goodsType;
    }

    public String getGoodsType() 
    {
        return goodsType;
    }
    public void setGoodsShelflife(Date goodsShelflife) 
    {
        this.goodsShelflife = goodsShelflife;
    }

    public Date getGoodsShelflife() 
    {
        return goodsShelflife;
    }
    public void setGoodsNumber(Long goodsNumber) 
    {
        this.goodsNumber = goodsNumber;
    }

    public Long getGoodsNumber() 
    {
        return goodsNumber;
    }
    public void setGoodsImg(String goodsImg) 
    {
        this.goodsImg = goodsImg;
    }

    public String getGoodsImg() 
    {
        return goodsImg;
    }
    public void setsStatus(Long sStatus) 
    {
        this.sStatus = sStatus;
    }

    public Long getsStatus() 
    {
        return sStatus;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setIsdelete(Long isdelete) 
    {
        this.isdelete = isdelete;
    }

    public Long getIsdelete() 
    {
        return isdelete;
    }
    public void setVersion(Long version) 
    {
        this.version = version;
    }

    public Long getVersion() 
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("goodsId", getGoodsId())
            .append("productName", getProductName())
            .append("goodsName", getGoodsName())
            .append("goodsPrice", getGoodsPrice())
            .append("goodsType", getGoodsType())
            .append("goodsShelflife", getGoodsShelflife())
            .append("goodsNumber", getGoodsNumber())
            .append("goodsImg", getGoodsImg())
            .append("sStatus", getsStatus())
            .append("createBy", getCreateBy())
            .append("createDate", getCreateDate())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("isdelete", getIsdelete())
            .append("version", getVersion())
            .toString();
    }
}
